<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>省略写法</title>
</head>
<body>
<script>
    var ni = {
        'hao'(h){
            alert(h)
        }
    }

    ni.hao("哇哇哇")
</script>
</body>
</html>